#include <bits/stdc++.h>
#include <cstdio>
using namespace std;
#define LL long long
#define XH(i,a,b) for(int i = a; i < b; ++i)
#define XXH(i,b,a) for(int i = b; i >= a; --i)
#define Module 998244353
int tmpInt;LL tmpLL;string tmpStr;char tmpChar;
vector<int>tmpIntVector;

int main(){
  int X;
  scanf("%d", &X);
  int ans = X%100;
  printf("%d",100-ans);

  return 0;
}
